package com.paipai.advice;

import com.paipai.utils.IdWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class IdConfig {
    @Bean("idWorker1")
    public IdWorker idWorker1(){
        return new IdWorker(1,1,1);
    }
    @Bean("idWorker2")
    public IdWorker idWorker2(){
        return new IdWorker(1,2,1);
    }

}
